<?
include "../config/constants.php";

if( $_GET[_test] ){
	$_POST[_cpid] = TEST_CPID;
	$_POST[_feed] = TEST_FEED;
}

$feed = $_POST[_feed];
$FN = md5( $_POST[_cpid].$_POST[_feed] );

exec( "wget -O ./tmp/$FN.xml $feed");

?>
<CENTER> 

<APPLET code	= 	"JamperApplet.class"
	archive		= 	"Jamper/Jamper.jar, 
					Jamper/ext_jar/jaxen-1.1.1.jar, 
					Jamper/ext_jar/saxpath.jar, 
					Jamper/ext_jar/xsom.jar,
					Jamper/ext_jar/commons-httpclient-3.1.jar,
					Jamper/ext_jar/commons-logging-1.1.1.jar,
					Jamper/ext_jar/commons-codec-1.3.jar"
	width	= "100%" height	= "100%" > 

	alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
	Your browser is completely ignoring the &lt;APPLET&gt; tag!

	<param name="map" value="<?=RULE_LOADER_URL?>?_feed=<?=$FN?>"> 
	<param name="feed" value="<?=$_POST[_feed]?>"> 
	<param name="cpid" value="<?=$_POST[_cpid]?>"> 
	<param name="register" value="<?=RULE_REGISTER_URL?>"> 
	<param name="NmsURL" value="<?=NMS_LOADER_URL?>?_feed=<?=$FN?>"> 
</APPLET>

</CENTER>
